package com.example.stock.entity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.stock.entity.eo.ProBarStockEo;
import com.example.stock.entity.eo.StockTradeEo;
import com.example.stock.vo.DataVo;
import com.example.stock.vo.common.TradeVo;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface IProBarStockService extends IService<ProBarStockEo> {


    List<ProBarStockEo> getAll(String tsCode);

    //获取30分钟收盘价
    List<DataVo> getRowData30(String tsCode, LocalDateTime startTime);

    List<DataVo> getRowData60(String tsCode, LocalDateTime startTime);

    Map<String, List<DataVo>> getRowData30Batch(LocalDateTime startTime, LocalDateTime endTime, List<String> tsCodes, int skip);

    Map<String, List<TradeVo>> calcEmaUpTrade(Map<String, List<DataVo>> stockRawData);

    List<StockTradeEo> calcTrade(List<TradeVo> tradeVos, String tsCode);

    Map<String, List<StockTradeEo>> doTrade(Map<String, List<TradeVo>> stockTradeVo);

    List<StockTradeEo> combineTrade(Map<String, List<StockTradeEo>> collect);

}
